package com.jixi.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "退餐订单表，记录学生的退餐订单信息")
@TableName("return_order")
public class ReturnOrder {
	
	@Schema(description = "退餐序号，主键")
	@TableId(value = "return_id")
	private Long returnId;
	
	@Schema(description = "退餐编号，用于唯一标识退餐订单")
	private String returnNumber;
	
	@Schema(description = "订单编号，关联到原始订餐订单")
	private String orderNumber;
	
	@Schema(description = "退餐学生姓名")
	private String studentName;
	
	@Schema(description = "退餐的日期和时间")
	private String returnDate;
	
	@Schema(description = "合计金额，退餐订单的总金额")
	private Double totalAmount;
	
	@Schema(description = "家长序号，外键，关联到家长信息表")
	private Long parentId;
	
	@Schema(description = "退餐状态：0：待退款，1：退款，2：取消退款")
	private Integer returnStatus;
	
	@Schema(description = "创建时间")
	private Date createTime;
	
	@Schema(description = "更新时间")
	private Date updateTime;
	
	@Schema(description = "是否删除")
	private Integer isDeleted;
	
	
}
